import { createStore } from "vuex";
import Map from "ol/Map";
export interface state {
  count: number;
  map: Map;
}

export const store = createStore({
  state() {
    return {
      count: 0,
      map: new Map({}),
    };
  },
  mutations: {
    increment(state: state, val) {
      state.count = val;
    },
    setMap(state: state, map) {
      state.map = map;
    },
  },
});
